import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//normalize.css  加载进度条的引入
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
//element-ui  element-ui库的引入
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//global css 全局css
import '@/assets/styles/index.scss'
//icon svg图标
import '@/icons'
//moment 时间格式化
import './utils/dateTimeFormatUtils.js'
//mavonEditor markdown文本编辑
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
//v-viewer 查看图片插件
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
// directive 防抖
import './utils/directive'

Vue.use(mavonEditor)  // 使用markdown编辑器插件
Vue.use(Element)      // 使用element-ui库插件
Vue.use(Viewer)       // 使用图片查看的插件

// 设置Vue绑定属性
Vue.prototype.msgSuccess = function (msg) {
	this.$message.success(msg)
}

Vue.prototype.msgError = function (msg) {
	this.$message.error(msg)
}

Vue.config.productionTip = false

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')